:root {
  --nvm-border-color-translucent: #f0f0f0;
  --nvm-border-color: #f2f2f2;
  .card {
    --nvm-card-spacer-x: 1rem;
    border-radius: 0;
  }
  .list-group {
    --nvm-list-group-item-padding-x: 1rem;
  }
}

#header.sticky-header-shrink {
  z-index: 1021;
}

.banner {
  height: 34.271vw;
}

.justify {
  text-align: justify;
}

.swiper {
  //   padding-bottom: 32px;

  .swiper-button {
    &-prev,
    &-next {
      color: $white;

      &::after {
        font-family: "novem-icons";
        font-size: 40px;
      }
    }

    &-prev::after {
      content: "\ebcb";
    }
    &-next::after {
      content: "\ebcc";
    }
  }

  .swiper-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    .swiper-button {
      &-prev,
      &-next {
        position: static;
        background: transparent;
        margin: 0px 30px;
        color: $primary;
      }
      &-next {
        margin-left: 9px;
      }
    }
  }

  .swiper-pagination-bullet {
    width: 0.75em;
    height: 0.75em;
    background-color: var(--#{$prefix}slider-arrow-color);
    border: 0;
    &-active {
      width: 2em;
      border-radius: 0.75em;
      background-color: $primary !important;
    }
  }
}

.brand {
  position: relative;
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: url("/assets/images/page/employment/bg.jpg") no-repeat center
      top;
    background-size: cover;
  }
  .brand-intro {
    h1,
    h2,
    p {
      color: $white;
    }
    sup {
      font-weight: normal;
      font-size: 0.375em;
      top: -1.25em;
    }
    div {
      &:nth-child(2n) {
        border-width: 0 !important;
      }
      &:nth-child(n + 2) {
        p {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
  }
  .brand-logo {
    background: $white;
    box-shadow: var(--#{$prefix}box-shadow);
  }
  .card {
    background: #f6f6f6;
    &.bg-none {
      background: transparent;
    }
    .card-body {
      h5.h1 {
        color: #606060;
        sup {
          font-weight: normal;
          font-size: 0.375em;
          top: -1.25em;
        }
      }

      p {
        color: #606060;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }

  .swiper {
    height: 230px;
    --swiper-pagination-bottom: 0;

    .swiper-slide {
      text-align: center;
      background: $white;
      height: calc((100% - 20px) / 2) !important;
      box-shadow: var(--nvm-box-shadow);

      /* Center slide text vertically */
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        width: calc(100% - var(--nvm-border-width) * 2);
        height: calc(100% - var(--nvm-border-width) * 2);
        // border: var(--nvm-border-color) var(--nvm-border-width) var(--nvm-border-style);
        // box-shadow: var(--nvm-box-shadow-sm);
      }

      &:hover {
        // border-color: rgba($warning, 0.5);
        // box-shadow: var(--nvm-box-shadow);
      }
    }

    // .swiper-btn {
    //   display: none;
    // }
  }
}

.album {
  position: relative;

  .album-item {
    position: relative;
    display: block;
    overflow: hidden;

    box-shadow: var(--#{$prefix}box-shadow-sm);

    img {
      position: relative;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.3s ease-in-out;
    }
    .intro {
      position: absolute;
      bottom: -1px;
      left: 0;
      right: 0;
      height: 2.5em;
      //   background: $white;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0) 100%
      );
      h5 {
        color: $white;
        font-size: 1rem;
        font-weight: 400;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: center;
      }
      span {
        font-size: small;
        color: $white;
      }
      i {
        color: $white;
        &::before {
          font-size: large;
          font-weight: 600;
        }
      }
      p {
        display: none;
      }
    }
    &:hover {
      img {
        transform: scale(1.05);
      }
      //   .intro {
      //     h5 {
      //       color: $warning;
      //     }
      //     span {
      //       color: $warning;
      //     }
      //     i {
      //       color: $warning;
      //     }
      //   }
    }
  }
}

.event {
  .item-container {
    position: relative;
    display: block;
    overflow: hidden;
    will-change: transform;
    height: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.3s ease-in-out;
    }
    .bg-overlay {
      position: absolute;
      bottom: 0;
      width: 100%;
      background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0) 100%
      );
      padding: 0.75em 2em;
      color: $white;
      p {
        margin-bottom: 0.5em;
      }
    }

    &:hover {
      img {
        transform: scale(1.05);
      }
    }
  }
  .social-item {
    .intro {
      p {
        font-size: 0.875em;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .origin {
        margin-bottom: -0.875em;
        padding: 0 0 0.5em;
        border-bottom: 4px solid #ee9640;
        width: 5em;
        font-size: 1em;
        i {
          font-size: 1.25em;
          margin-right: 0.25em;
        }
        &.wechat {
          border-color: #47d800;
        }
        &.tiktok {
          border-color: #ed3495;
        }
      }
    }
  }
}

.panorama-container {
  margin: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
  cursor: default;
  width: 100%;
  height: 0;
  padding-bottom: 50% !important;
  background: url(/assets/images/home/banner.jpg) center center no-repeat;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: 0;
  line-height: 1.4;
  contain: contet;
  &:focus {
    outline: none;
    // border-style: none;
  }
  .vr720-link {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    .icon {
      background-color: hsla(0, 0%, 100%, 0.37);
      border-radius: 50%;
      cursor: pointer;
      margin-bottom: 30px;
      padding: 20px;
      position: relative;
      &::after,
      &::before {
        animation: ringKey 3s ease-in-out infinite;
        border: 1px solid hsla(0, 0%, 100%, 0.48);
        border-radius: 50%;
        content: "";
        position: absolute;
      }

      &::before {
        bottom: -20px;
        left: -20px;
        right: -20px;
        top: -20px;
      }

      &::after {
        bottom: -10px;
        left: -10px;
        right: -10px;
        top: -10px;
      }

      img {
        height: 40px;
        width: 40px;
      }
    }
    .title {
      text-align: center;
      color: #fff;
      font-weight: 600;
    }
  }
}

.media-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  .video-container {
    position: absolute;
    width: 100%;
    height: 100%;
    video {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .media-trigger-playback {
    position: absolute;
    width: 56px;
    height: 56px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background: rgba(11, 49, 143, 0.65);
    border-radius: 50%;
    z-index: 2;
    &::before {
      content: "";
      background: rgba(11, 49, 143, 0.65);
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      border-radius: 50%;
      animation: warn 1.8s ease-out infinite;
      z-index: 0;
    }
    i {
      border: 12px solid transparent;
      border-left: 18px solid #fff;
      display: block;
      position: absolute;
      left: 50%;
      top: 50%;
      margin-top: -12px;
      margin-left: -6px;
    }
  }
  &.media-is-playing {
    .media-trigger-playback {
      opacity: 0;
    }
  }
}

.teacher {
  .fs-sm {
    font-size: 0.5rem !important;
  }
}

.team {
  .swiper {
    height: 320px;
    margin: 0 auto;

    .swiper {
      padding-bottom: 20px;
    }

    --swiper-navigation-size: 24px;
    --swiper-pagination-bottom: 0;

    .swiper-button-prev,
    .swiper-button-next {
      background: rgba(255, 255, 255, 0.25);
      border-radius: 5px;
      width: 40px;
      height: 40px;
      margin-top: -22px;
      opacity: 1;
    }

    .swiper-slide {
      text-align: center;
      height: auto;
      padding-top: 0.25em;

      .card {
        // background: $gray-50;
        background: transparent;
        border-radius: 0;
        transition: all 0.3s ease-out;
        padding: 0 0.75em;
        .card-img-top {
          border-radius: 0;
        }

        h5 {
          color: #5b5b5b;
        }
        p {
          // display: inline-block;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          color: #a0a0a0;
        }

        &:hover {
          box-shadow: var(--#{$prefix}box-shadow-sm);
          transform: translateY(-0.25em);
        }
      }
    }
  }
}

#school {
  position: relative;
  &::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: $gray-50;
    // opacity: 0.1;
  }
  .school-intro {
    sup {
      font-weight: normal;
      font-size: 0.375em;
      top: -1.25em;
    }
    div {
      &:nth-child(2n) {
        border-width: 0 !important;
      }
      &:nth-child(n + 2) {
        p {
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
        }
      }
    }
  }
  .school-logo {
    background: $white;
    box-shadow: var(--#{$prefix}box-shadow);
  }
  .card {
    background: #f6f6f6;
    &.bg-none {
      background: transparent;
    }
    .card-body {
      h5.h1 {
        color: #606060;
        sup {
          font-weight: normal;
          font-size: 0.375em;
          top: -1.25em;
        }
      }

      p {
        color: #606060;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
    }
  }

  .swiper {
    height: 350px;
    --swiper-pagination-bottom: 0;

    .swiper-slide {
      text-align: center;
      background: $white;
      height: calc((100% - 20px) / 2) !important;
      box-shadow: var(--nvm-box-shadow);

      /* Center slide text vertically */
      display: flex;
      justify-content: center;
      align-items: center;

      img {
        width: calc(100% - var(--nvm-border-width) * 2);
        height: calc(100% - var(--nvm-border-width) * 2);
        // border: var(--nvm-border-color) var(--nvm-border-width) var(--nvm-border-style);
        // box-shadow: var(--nvm-box-shadow-sm);
      }

      &:hover {
        // border-color: rgba($warning, 0.5);
        // box-shadow: var(--nvm-box-shadow);
      }
    }

    // .swiper-btn {
    //   display: none;
    // }
  }
}

@include media-breakpoint-up(sm) {
  .teacher {
    .fs-sm {
      font-size: 0.75rem !important;
    }
  }
}

@include media-breakpoint-up(lg) {
  .teacher {
    .fs-sm {
      font-size: 0.875rem !important;
    }
  }
  .team {
    .swiper {
      height: 660px;
      margin: 0 auto;
      --swiper-navigation-size: 24px;
    }
  }
}
